package com.voicechat.firstmet.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @ProjectName: FirstMet
 * @Package: com.voicechat.firstmet.bean
 * @ClassName: MySelfInfoBean
 * @Description: 个人信息实体
 * @Author: ljp
 * @CreateDate: 2018/10/24 10:49
 * @Version: 1.0
 */
public class MySelfInfoBean {

    /**
     * code : 200
     * msg : 成功
     * object : {"id":"f68b3c28db3c41d795b34268aef3b68a","isNewRecord":false,"createDate":"2017-09-27 15:52:15","updateDate":"2018-10-12 17:02:46","number":"123456","mobile":"18756935824","pwd":"bfd59291e825b5f2bbf1eb76569f8fe7","nickName":"😁","avatarUrl":"head/58241538036271658.jpg","gender":2,"birthday":"1998.09.27","height":"80;175","voiceInfo":"voice/13754326412yinyin.aac","status":1,"autograph":"崩溃","ascription":"嘉兴","constellation":"天秤座","gold":500,"type":2,"attestationDate":"2018-10-03 17:02:41","token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDA5NTM2MTIzNDEsInBheWxvYWQiOiJ7XCJpZFwiOlwiZjY4YjNjMjhkYjNjNDFkNzk1YjM0MjY4YWVmM2I2OGFcIixcImlzTmV3UmVjb3JkXCI6ZmFsc2UsXCJyZW1hcmtzXCI6bnVsbCxcImNyZWF0ZURhdGVcIjpudWxsLFwidXBkYXRlRGF0ZVwiOm51bGwsXCJudW1iZXJcIjpudWxsLFwibW9iaWxlXCI6bnVsbCxcInRyaXBhcnRpdGVBY2NvdW50XCI6bnVsbCxcInRyaXBhcnRpdGVUeXBlXCI6bnVsbCxcInB3ZFwiOm51bGwsXCJuYW1lXCI6bnVsbCxcIm5pY2tOYW1lXCI6bnVsbCxcImF2YXRhclVybFwiOm51bGwsXCJnZW5kZXJcIjpudWxsLFwiYmlydGhkYXlcIjpudWxsLFwiaGVpZ2h0XCI6bnVsbCxcInZvaWNlSW5mb1wiOm51bGwsXCJzdGF0dXNcIjpudWxsLFwiYXV0b2dyYXBoXCI6bnVsbCxcImFzY3JpcHRpb25cIjpudWxsLFwiY29uc3RlbGxhdGlvblwiOm51bGwsXCJnb2xkXCI6bnVsbCxcInR5cGVcIjpudWxsLFwiYXR0ZXN0YXRpb25EYXRlXCI6bnVsbCxcImNvdmVyVXJsXCI6bnVsbCxcImNoYW5uZWxcIjpudWxsLFwiY29kZVwiOm51bGwsXCJlcXVpcG1lbnRJZFwiOlwiYV9pbWVpXzg2OTg5NzAzNjAzMTI5MVwiLFwidG9rZW5cIjpudWxsLFwic3RhdGVcIjpudWxsLFwibWRBY2Nlc3NcIjpudWxsLFwibG9uZ2l0dWRlXCI6bnVsbCxcImRpbWVuc2lvblwiOm51bGwsXCJtZEFsYnVtXCI6bnVsbCxcIm1kR29sZFwiOm51bGwsXCJ0b3RhbEdvbGRcIjpudWxsLFwid2VhbHRoXCI6bnVsbCxcInRvdGFsSW5jb21lXCI6bnVsbCxcImZVc2VySWRcIjpudWxsLFwibWRTdGF0ZVwiOm51bGwsXCJ2VHlwZVwiOm51bGwsXCJmYW5zXCI6bnVsbCxcImZvbGxvd1wiOm51bGwsXCJmYWJ1bG91c1wiOm51bGwsXCJhY2Nlc3NcIjpudWxsLFwiYlR5cGVcIjpudWxsfSJ9.hgLdJg__3Jl8JJCrTBDfrEZhrUj6rg5lwZT4FR-71WI"}
     * map : {"userSig":"eJxNj29PgzAQxr*K6WvjWlqgLPEFLihqt2Qws*kb0kKBqvzvljHjd7cSYrwXd7nfk7vn7gvsWHzD07Q51jrRYyvBEkBwPWGVyVqrXMnewNyhAqcWzUwmKHM9W2BiOZTLHAtT5hnetipLuE5wn-1bNWQfySQZhgiEiLiUOLMoz63qZcJzPTlh*DelCtOvg5fVYxgX7Axp12vW8W77dqCNx2IvHNwqjQ7HLtqEd9GlPD-Jva8C-73YLPaBuxJ1yOv1TrBnh432aFWfarj3BKtfT*ViWz6EfnM7m2lV-T6PbAIxoRRZMz-JflBNDZZXwILIRpa5zwT4-gF3*V5x"}
     */

    private int code;
    private String msg;
    private ObjectBean object;
    private MapBean map;


    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public ObjectBean getObject() {
        return object;
    }

    public void setObject(ObjectBean object) {
        this.object = object;
    }

    public MapBean getMap() {
        return map;
    }

    public void setMap(MapBean map) {
        this.map = map;
    }

    public static class ObjectBean implements Parcelable {
        /**
         * id : f68b3c28db3c41d795b34268aef3b68a
         * isNewRecord : false
         * createDate : 2017-09-27 15:52:15
         * updateDate : 2018-10-12 17:02:46
         * number : 123456
         * mobile : 18756935824
         * pwd : bfd59291e825b5f2bbf1eb76569f8fe7
         * nickName : 😁
         * avatarUrl : head/58241538036271658.jpg
         * gender : 2
         * birthday : 1998.09.27
         * height : 80;175
         * voiceInfo : voice/13754326412yinyin.aac
         * status : 1
         * autograph : 崩溃
         * ascription : 嘉兴
         * constellation : 天秤座
         * gold : 500
         * type : 2
         * attestationDate : 2018-10-03 17:02:41
         * token : eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NDA5NTM2MTIzNDEsInBheWxvYWQiOiJ7XCJpZFwiOlwiZjY4YjNjMjhkYjNjNDFkNzk1YjM0MjY4YWVmM2I2OGFcIixcImlzTmV3UmVjb3JkXCI6ZmFsc2UsXCJyZW1hcmtzXCI6bnVsbCxcImNyZWF0ZURhdGVcIjpudWxsLFwidXBkYXRlRGF0ZVwiOm51bGwsXCJudW1iZXJcIjpudWxsLFwibW9iaWxlXCI6bnVsbCxcInRyaXBhcnRpdGVBY2NvdW50XCI6bnVsbCxcInRyaXBhcnRpdGVUeXBlXCI6bnVsbCxcInB3ZFwiOm51bGwsXCJuYW1lXCI6bnVsbCxcIm5pY2tOYW1lXCI6bnVsbCxcImF2YXRhclVybFwiOm51bGwsXCJnZW5kZXJcIjpudWxsLFwiYmlydGhkYXlcIjpudWxsLFwiaGVpZ2h0XCI6bnVsbCxcInZvaWNlSW5mb1wiOm51bGwsXCJzdGF0dXNcIjpudWxsLFwiYXV0b2dyYXBoXCI6bnVsbCxcImFzY3JpcHRpb25cIjpudWxsLFwiY29uc3RlbGxhdGlvblwiOm51bGwsXCJnb2xkXCI6bnVsbCxcInR5cGVcIjpudWxsLFwiYXR0ZXN0YXRpb25EYXRlXCI6bnVsbCxcImNvdmVyVXJsXCI6bnVsbCxcImNoYW5uZWxcIjpudWxsLFwiY29kZVwiOm51bGwsXCJlcXVpcG1lbnRJZFwiOlwiYV9pbWVpXzg2OTg5NzAzNjAzMTI5MVwiLFwidG9rZW5cIjpudWxsLFwic3RhdGVcIjpudWxsLFwibWRBY2Nlc3NcIjpudWxsLFwibG9uZ2l0dWRlXCI6bnVsbCxcImRpbWVuc2lvblwiOm51bGwsXCJtZEFsYnVtXCI6bnVsbCxcIm1kR29sZFwiOm51bGwsXCJ0b3RhbEdvbGRcIjpudWxsLFwid2VhbHRoXCI6bnVsbCxcInRvdGFsSW5jb21lXCI6bnVsbCxcImZVc2VySWRcIjpudWxsLFwibWRTdGF0ZVwiOm51bGwsXCJ2VHlwZVwiOm51bGwsXCJmYW5zXCI6bnVsbCxcImZvbGxvd1wiOm51bGwsXCJmYWJ1bG91c1wiOm51bGwsXCJhY2Nlc3NcIjpudWxsLFwiYlR5cGVcIjpudWxsfSJ9.hgLdJg__3Jl8JJCrTBDfrEZhrUj6rg5lwZT4FR-71WI
         */

        private String id;//自己的id
        private boolean isNewRecord;
        private String createDate;
        private String updateDate;
        private String number;//隐隐id
        private String mobile;//手机号码
        private String pwd;
        private String nickName;//昵称
        private String avatarUrl;//头像地址
        private int gender;//性别 1男2女
        private String birthday;//生日
        private String height;//身高体重
        private String voiceInfo;//语音地址
        private int status;//在线状态 1在线2隐身3离线     语聊信息//关注状态  0关注 1已关注 2互相关注
        private String autograph;//个性签名
        private String ascription;//市
        private String province;             // 省份
        private String constellation;//星座
        private int gold;//收费金币    语聊信息//通话消费金币
        private int type;//1普通用户2主播
        private String attestationDate;
        private String token;//
        private int isAudit;//是否实名认证过   0 未上传 1上传
        private int isAttestation;// 实名认证任务 0未认证 1 已审核 2 审核中 3驳回
        private int duration;//语音时长     语聊信息//通话时长

        private String voiceSign;//他人主页，一键语聊是否打开
        private String vType;// 会员类型  0非会员 1月会员 2年会员
        private String labourName;//他人主页，主播工会

        //会员页面信息
        private String endDate;              // 会员结束时间
        private int vagrancy;             // 无痕浏览 0开启 1关闭
        private int remind;               // 取消关注提醒 0开启 1关闭

        private String   accountId ;           // 账户id
        private String   account;              // 支付宝账号
        private int  aisle;                // 通道 1微信 2支付宝
        private String  name ;           //实名认证通过的用户名称
        private int   realNameStatus;              //实名认证状态
        private String voiceId;//语聊信息页面 语聊id
        private int mark; // 0.下线  1.上线
        public int getMark() {
            return mark;
        }

        public void setMark(int mark) {
            this.mark = mark;
        }
        public String getVoiceId() {
            return voiceId;
        }

        public void setVoiceId(String voiceId) {
            this.voiceId = voiceId;
        }

        public int getIsAttestation() {
            return isAttestation;
        }

        public void setIsAttestation(int isAttestation) {
            this.isAttestation = isAttestation;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getRealNamestatus() {
            return realNameStatus;
        }

        public void setRealNamestatus(int realNamestatus) {
            this.realNameStatus = realNamestatus;
        }

        public String getAccountId() {
            return accountId;
        }

        public String getAccount() {
            return account;
        }

        public Integer getAisle() {
            return aisle;
        }

        protected ObjectBean(Parcel in) {
            id = in.readString();
            isNewRecord = in.readByte() != 0;
            createDate = in.readString();
            updateDate = in.readString();
            number = in.readString();
            mobile = in.readString();
            pwd = in.readString();
            nickName = in.readString();
            avatarUrl = in.readString();
            gender = in.readInt();
            birthday = in.readString();
            height = in.readString();
            voiceInfo = in.readString();
            status = in.readInt();
            autograph = in.readString();
            ascription = in.readString();
            constellation = in.readString();
            gold = in.readInt();
            type = in.readInt();
            attestationDate = in.readString();
            token = in.readString();
            voiceSign = in.readString();
            vType = in.readString();
            labourName = in.readString();
            isAttestation = in.readInt();
            vagrancy = in.readInt();
            remind = in.readInt();
            province = in.readString();
            duration = in.readInt();
            voiceId = in.readString();
        }

        public static final Creator<ObjectBean> CREATOR = new Creator<ObjectBean>() {
            @Override
            public ObjectBean createFromParcel(Parcel in) {
                return new ObjectBean(in);
            }

            @Override
            public ObjectBean[] newArray(int size) {
                return new ObjectBean[size];
            }
        };


        public int getDuration() {
            return duration;
        }

        public String getProvince() {
            return province;
        }

        public void setProvince(String province) {
            this.province = province;
        }

        public int getIsAudit() {
            return isAudit;
        }

        public void setIsAudit(int isAudit) {
            this.isAudit = isAudit;
        }

        public String getEndDate() {
            return endDate;
        }

        public void setEndDate(String endDate) {
            this.endDate = endDate;
        }

        public int getVagrancy() {
            return vagrancy;
        }

        public void setVagrancy(int vagrancy) {
            this.vagrancy = vagrancy;
        }

        public int getRemind() {
            return remind;
        }

        public void setRemind(int remind) {
            this.remind = remind;
        }

        public String getvType() {
            return vType;
        }

        public void setvType(String vType) {
            this.vType = vType;
        }

        public String getLabourName() {
            return labourName;
        }

        public void setLabourName(String labourName) {
            this.labourName = labourName;
        }

        public String getVoiceSign() {
            return voiceSign;
        }

        public void setVoiceSign(String voiceSign) {
            this.voiceSign = voiceSign;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public boolean isIsNewRecord() {
            return isNewRecord;
        }

        public void setIsNewRecord(boolean isNewRecord) {
            this.isNewRecord = isNewRecord;
        }

        public String getCreateDate() {
            return createDate;
        }

        public void setCreateDate(String createDate) {
            this.createDate = createDate;
        }

        public String getUpdateDate() {
            return updateDate;
        }

        public void setUpdateDate(String updateDate) {
            this.updateDate = updateDate;
        }

        public String getNumber() {
            return number;
        }

        public void setNumber(String number) {
            this.number = number;
        }

        public String getMobile() {
            return mobile;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public String getPwd() {
            return pwd;
        }

        public void setPwd(String pwd) {
            this.pwd = pwd;
        }

        public String getNickName() {
            return nickName;
        }

        public void setNickName(String nickName) {
            this.nickName = nickName;
        }

        public String getAvatarUrl() {
            return avatarUrl;
        }

        public void setAvatarUrl(String avatarUrl) {
            this.avatarUrl = avatarUrl;
        }

        public int getGender() {
            return gender;
        }

        public void setGender(int gender) {
            this.gender = gender;
        }

        public String getBirthday() {
            return birthday;
        }

        public void setBirthday(String birthday) {
            this.birthday = birthday;
        }

        public String getHeight() {
            return height;
        }

        public void setHeight(String height) {
            this.height = height;
        }

        public String getVoiceInfo() {
            return voiceInfo;
        }

        public void setVoiceInfo(String voiceInfo) {
            this.voiceInfo = voiceInfo;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public String getAutograph() {
            return autograph;
        }

        public void setAutograph(String autograph) {
            this.autograph = autograph;
        }

        public String getAscription() {
            return ascription;
        }

        public void setAscription(String ascription) {
            this.ascription = ascription;
        }

        public String getConstellation() {
            return constellation;
        }

        public void setConstellation(String constellation) {
            this.constellation = constellation;
        }

        public int getGold() {
            return gold;
        }

        public void setGold(int gold) {
            this.gold = gold;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getAttestationDate() {
            return attestationDate;
        }

        public void setAttestationDate(String attestationDate) {
            this.attestationDate = attestationDate;
        }

        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }

        @Override
        public String toString() {
            return "ObjectBean{" +
                    "id='" + id + '\'' +
                    ", isNewRecord=" + isNewRecord +
                    ", createDate='" + createDate + '\'' +
                    ", updateDate='" + updateDate + '\'' +
                    ", number='" + number + '\'' +
                    ", mobile='" + mobile + '\'' +
                    ", pwd='" + pwd + '\'' +
                    ", nickName='" + nickName + '\'' +
                    ", avatarUrl='" + avatarUrl + '\'' +
                    ", gender=" + gender +
                    ", birthday='" + birthday + '\'' +
                    ", height='" + height + '\'' +
                    ", voiceInfo='" + voiceInfo + '\'' +
                    ", status=" + status +
                    ", autograph='" + autograph + '\'' +
                    ", ascription='" + ascription + '\'' +
                    ", province='" + province + '\'' +
                    ", constellation='" + constellation + '\'' +
                    ", gold=" + gold +
                    ", type=" + type +
                    ", attestationDate='" + attestationDate + '\'' +
                    ", token='" + token + '\'' +
                    ", isAttestation=" + isAttestation +
                    ", duration=" + duration +
                    ", voiceSign='" + voiceSign + '\'' +
                    ", vType='" + vType + '\'' +
                    ", labourName='" + labourName + '\'' +
                    ", endDate='" + endDate + '\'' +
                    ", vagrancy=" + vagrancy +
                    ", remind=" + remind +
                    ", accountId='" + accountId + '\'' +
                    ", account='" + account + '\'' +
                    ", aisle=" + aisle +
                    ", name='" + name + '\'' +
                    ", realNamestatus=" + realNameStatus +
                    '}';
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(id);
            dest.writeByte((byte) (isNewRecord ? 1 : 0));
            dest.writeString(createDate);
            dest.writeString(updateDate);
            dest.writeString(number);
            dest.writeString(mobile);
            dest.writeString(pwd);
            dest.writeString(nickName);
            dest.writeString(avatarUrl);
            dest.writeInt(gender);
            dest.writeString(birthday);
            dest.writeString(height);
            dest.writeString(voiceInfo);
            dest.writeInt(status);
            dest.writeString(autograph);
            dest.writeString(ascription);
            dest.writeString(constellation);
            dest.writeInt(gold);
            dest.writeInt(type);
            dest.writeString(attestationDate);
            dest.writeString(token);
            dest.writeString(voiceSign);
            dest.writeString(vType);
            dest.writeString(labourName);
            dest.writeInt(isAttestation);
            dest.writeInt(vagrancy);
            dest.writeInt(remind);
            dest.writeString(province);
            dest.writeInt(duration);
            dest.writeString(voiceId);


        }
    }

    @Override
    public String toString() {
        return "MySelfInfoBean{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", object=" + object +
                ", map=" + map +
                '}';
    }

    public static class MapBean {
        /**
         * userSig : eJxNj29PgzAQxr*K6WvjWlqgLPEFLihqt2Qws*kb0kKBqvzvljHjd7cSYrwXd7nfk7vn7gvsWHzD07Q51jrRYyvBEkBwPWGVyVqrXMnewNyhAqcWzUwmKHM9W2BiOZTLHAtT5hnetipLuE5wn-1bNWQfySQZhgiEiLiUOLMoz63qZcJzPTlh*DelCtOvg5fVYxgX7Axp12vW8W77dqCNx2IvHNwqjQ7HLtqEd9GlPD-Jva8C-73YLPaBuxJ1yOv1TrBnh432aFWfarj3BKtfT*ViWz6EfnM7m2lV-T6PbAIxoRRZMz-JflBNDZZXwILIRpa5zwT4-gF3*V5x
         */
        private String userSig;

        public String getUserSig() {
            return userSig;
        }

        public void setUserSig(String userSig) {
            this.userSig = userSig;
        }

        @Override
        public String toString() {
            return "MapBean{" +
                    "userSig='" + userSig + '\'' +
                    '}';
        }
    }
}
